package com.misty.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.misty.api.param.file.FileParam;
import com.misty.common.bean.Result;
import com.misty.dao.domain.Blog;
import com.misty.dao.dto.BlogDto;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cthulhu
 * @since 2022-11-21
 */
public interface BlogService extends IService<Blog> {

    Result<?> saveBlog(Blog blog);

    Result<?> updateBlog(Blog blog);

    Result<?> deleteBlog(Integer blogId);

    Result<?> Page(Integer pageNum, Integer pageSize, String search
    );

    Result<List<BlogDto>> getAllInfo();

    Result<?> order(Integer pageNum, Integer pageSize, String search
    );

    Result<?> selectByIdWithUser(Integer id);

    Result<?> statistics();

    Boolean uploadExcel(FileParam fileParam) throws IOException;
}
